package com.kfgj.hkp.entity.dept.enums;

import com.kfgj.hkp.common.dic.Dictionary;
import com.kfgj.hkp.common.dic.DictionaryProvider;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class LookAreaType implements DictionaryProvider {

    public final static String LookAreaType = "LookAreaType";
    public final static String City = "city";
    public final static String Region = "region";
    public final static String Street = "street";
    public final static String Community = "community";

    @Override
    public List<Dictionary> produce() {
        List<Dictionary> list = new ArrayList<Dictionary>();
        list.add(new Dictionary(getKey(), LookAreaType, "查看区域类型"));
        list.add(new Dictionary(getKey(), City, "城市", LookAreaType));
        list.add(new Dictionary(getKey(), Region, "区域", LookAreaType));
        list.add(new Dictionary(getKey(), Street, "街道", LookAreaType));
        list.add(new Dictionary(getKey(), Community, "社区", LookAreaType));
        return list;
    }

    public static String getKey() {
        return LookAreaType.class.getName();
    }
}
